import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/testApp'
import {Provider} from 'react-redux'
import {createStore} from 'redux'
import reducer from './reducer'
let store = createStore(reducer)
console.log(store)
console.log(store.getState())
store.dispatch({
    type:'ADD',
    title:'彭进',
    singer:'牛逼'
})
console.log(store.getState())
ReactDOM.render(
    <Provider store={store}>
        <App mivo='最近'/>
    </Provider>
  , document.getElementById('root'))